package cn.org.timespace.easyframe.model.permission;

import java.util.HashSet;
import java.util.Set;

/**
 * EfRole entity. @author MyEclipse Persistence Tools
 */

public class EfRole implements java.io.Serializable {

	// Fields

	private String roleId;
	private String roleName;
	private String roleCode;
	private String dicRoleIsValid;
	private Set efRoleMenus = new HashSet(0);
	private Set efUserRoles = new HashSet(0);

	// Constructors

	/** default constructor */
	public EfRole() {
	}

	/** minimal constructor */
	public EfRole(String roleName, String roleCode, String dicRoleIsValid) {
		this.roleName = roleName;
		this.roleCode = roleCode;
		this.dicRoleIsValid = dicRoleIsValid;
	}

	/** full constructor */
	public EfRole(String roleName, String roleCode, String dicRoleIsValid,
			Set efRoleMenus, Set efUserRoles) {
		this.roleName = roleName;
		this.roleCode = roleCode;
		this.dicRoleIsValid = dicRoleIsValid;
		this.efRoleMenus = efRoleMenus;
		this.efUserRoles = efUserRoles;
	}

	// Property accessors

	public String getRoleId() {
		return this.roleId;
	}

	public void setRoleId(String roleId) {
		this.roleId = roleId;
	}

	public String getRoleName() {
		return this.roleName;
	}

	public void setRoleName(String roleName) {
		this.roleName = roleName;
	}

	public String getRoleCode() {
		return this.roleCode;
	}

	public void setRoleCode(String roleCode) {
		this.roleCode = roleCode;
	}

	public String getDicRoleIsValid() {
		return this.dicRoleIsValid;
	}

	public void setDicRoleIsValid(String dicRoleIsValid) {
		this.dicRoleIsValid = dicRoleIsValid;
	}

	public Set getEfRoleMenus() {
		return this.efRoleMenus;
	}

	public void setEfRoleMenus(Set efRoleMenus) {
		this.efRoleMenus = efRoleMenus;
	}

	public Set getEfUserRoles() {
		return this.efUserRoles;
	}

	public void setEfUserRoles(Set efUserRoles) {
		this.efUserRoles = efUserRoles;
	}

}